home *** CD-ROM | disk | FTP | other *** search
- Path: crl.crl.com!not-for-mail
- From: bobfry@crl.com (Robert Fry)
- Newsgroups: comp.lang.c
- Subject: Re: Hot to choose the seed for RNG ?
- Date: 24 Jan 1996 09:08:38 -0800
- Organization: CRL Dialup Internet Access
- Message-ID: <4e5p2m$5q6@crl.crl.com>
- References: <4e51h8$l90@centre.univ-orleans.fr>
- NNTP-Posting-Host: crl.com
-
- emmguyot@desiree.univ-orleans.fr (Emmanuel GUYOT) writes:
-
- >How to choose the seed to initialize RNG ?
- >Should the seed have special properties (prime number, ...) ?
-
- This depends on the generator and the initializer. If properly written
- (which is /not/ guaranteed), the initialization routine should work well
- whatever you pass to it. The only thing you are likely to want to keep in
- mind is that it should be idfferent each time you initialize -- most
- people simply call time() to get the current (system) time.
-
- Bob
-